PSIGNAL

Section: MINTLIB LIBRARY FUNCTIONS (3)
Updated: 3 March 1993
Index Return to Main Contents
 

NAME

psignal, sys_siglist, signal_names - system signal messages  

SYNOPSIS

#include <unistd.h>

void psignal (int sig, const char *s);

#include <siglist.h>

extern char *sys_siglist[];

extern char *signal_names[]; // Should not be used
 

DESCRIPTION

psignal produces a message on the standard error output describing the indicated signal. The argument string s is printed first, then a colon and a blank, then the name of the signal and a new-line. (However, if s is NULL or s is an empty string the colon is not printed.) To be of most use, the argument string should include the name of the program that incurred the signal. The signal number should be from among those found in <signal.h>. To simplify variant formatting of messages, the array of messages sys_siglist is provided; the signal number can be used as an index into this table to get the signal name without the new-line. The constant NSIG defined in the include file <signal.h> is the number of messages provided for in the table. The array of signal names signal_names has also been provided; it is there only for backward compatibility purposes, and should not be used.  

NOTES

On UN*X, the string s may be empty, but may not always be NULL. MiNT signals are rather different from UN*X and POSIX.
 

Index

NAME
SYNOPSIS
DESCRIPTION
NOTES

This document was created by man2html, using the manual pages.
Time: 11:15:14 GMT, June 22, 2025